public class yuan  extends GeometricObject{
    private double width;
    private double heigth;
    public yuan(){

    }
    public yuan(double width,double heigth){
        this.width = width;
        this.heigth = heigth;
    }

    public double getWidth(){return width;}

    public void setWidth(double width) { this.width=width;}

    public double getHeigth(){return heigth;}

    public void setHeigth(double heigth) { this.heigth=heigth;}

    @Override
    public double getArea() {
        return width * heigth;
    }

    @Override
    public double getPerimeter() {
        return 2 * (width + heigth);
    }
}

